[INFO] cloning repository https://github.com/frostRed/head_first_design_patterns_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frostRed/head_first_design_patterns_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfrostRed%2Fhead_first_design_patterns_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfrostRed%2Fhead_first_design_patterns_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 779447adaf64ad62404312d51b8363b8602c3552
[INFO] building frostRed/head_first_design_patterns_rust against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfrostRed%2Fhead_first_design_patterns_rust" "/workspace/builds/worker-4/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/frostRed/head_first_design_patterns_rust on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/frostRed/head_first_design_patterns_rust
[INFO] finished tweaking git repo https://github.com/frostRed/head_first_design_patterns_rust
[INFO] tweaked toml for git repo https://github.com/frostRed/head_first_design_patterns_rust written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate git repo https://github.com/frostRed/head_first_design_patterns_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 0812da3c13d235adf66b3db27b312ef2254b6450f6d0a15fc2a7e810e309a79e
[INFO] running `Command { std: "docker" "start" "-a" "0812da3c13d235adf66b3db27b312ef2254b6450f6d0a15fc2a7e810e309a79e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0812da3c13d235adf66b3db27b312ef2254b6450f6d0a15fc2a7e810e309a79e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0812da3c13d235adf66b3db27b312ef2254b6450f6d0a15fc2a7e810e309a79e", kill_on_drop: false }`
[INFO] [stdout] 0812da3c13d235adf66b3db27b312ef2254b6450f6d0a15fc2a7e810e309a79e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fcce5916aa938cb97a91c5810e1bbb512d714575405a96b0e5c39a0cbdc41ecc
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "fcce5916aa938cb97a91c5810e1bbb512d714575405a96b0e5c39a0cbdc41ecc", kill_on_drop: false }`
[INFO] [stderr]    Compiling lazy_static v1.2.0
[INFO] [stderr]    Compiling head_first_design_patterns v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary braces around block return value
[INFO] [stdout]   --> src/singleton.rs:50:49
[INFO] [stdout]    |
[INFO] [stdout] 50 |     pub static ref C: RwLock<ChocolateBoiler> = { RwLock::new(ChocolateBoiler::new()) };
[INFO] [stdout]    |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_braces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:19:48
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn quack_behavior(&self) -> Rc<RefCell<Box<QuackBehavior>>>;
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:24:46
[INFO] [stdout]    |
[INFO] [stdout] 24 |     fn fly_behavior(&self) -> Rc<RefCell<Box<FlyBehavior>>>;
[INFO] [stdout]    |                                              ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:29:50
[INFO] [stdout]    |
[INFO] [stdout] 29 |     fn set_fly_behavior(&self, fly_behavior: Box<FlyBehavior>) {
[INFO] [stdout]    |                                                  ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:83:36
[INFO] [stdout]    |
[INFO] [stdout] 83 |     quack_behavior: Rc<RefCell<Box<QuackBehavior>>>,
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:84:34
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fly_behavior: Rc<RefCell<Box<FlyBehavior>>>,
[INFO] [stdout]    |                                  ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:90:73
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let fly = Rc::new(RefCell::new(Box::new(FlyWithWings {}) as Box<FlyBehavior>));
[INFO] [stdout]    |                                                                         ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:91:68
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let quack = Rc::new(RefCell::new(Box::new(Quack {}) as Box<QuackBehavior>));
[INFO] [stdout]    |                                                                    ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]    = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:103:48
[INFO] [stdout]     |
[INFO] [stdout] 103 |     fn quack_behavior(&self) -> Rc<RefCell<Box<QuackBehavior>>> {
[INFO] [stdout]     |                                                ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:106:46
[INFO] [stdout]     |
[INFO] [stdout] 106 |     fn fly_behavior(&self) -> Rc<RefCell<Box<FlyBehavior>>> {
[INFO] [stdout]     |                                              ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:113:36
[INFO] [stdout]     |
[INFO] [stdout] 113 |     quack_behavior: Rc<RefCell<Box<QuackBehavior>>>,
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:114:34
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fly_behavior: Rc<RefCell<Box<FlyBehavior>>>,
[INFO] [stdout]     |                                  ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:119:69
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let fly = Rc::new(RefCell::new(Box::new(FlyNoWay {}) as Box<FlyBehavior>));
[INFO] [stdout]     |                                                                     ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:120:68
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let quack = Rc::new(RefCell::new(Box::new(Quack {}) as Box<QuackBehavior>));
[INFO] [stdout]     |                                                                    ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:131:48
[INFO] [stdout]     |
[INFO] [stdout] 131 |     fn quack_behavior(&self) -> Rc<RefCell<Box<QuackBehavior>>> {
[INFO] [stdout]     |                                                ^^^^^^^^^^^^^ help: use `dyn`: `dyn QuackBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:134:46
[INFO] [stdout]     |
[INFO] [stdout] 134 |     fn fly_behavior(&self) -> Rc<RefCell<Box<FlyBehavior>>> {
[INFO] [stdout]     |                                              ^^^^^^^^^^^ help: use `dyn`: `dyn FlyBehavior`
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
[INFO] [stdout]     = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/template_method.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{self, Read};
[INFO] [stdout]   |                     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Beverage`, `DarkRost`, `Espresso`, `HouseBlend`, `Mocha`, `Soy`, `Whip`
[INFO] [stdout]   --> src/lib.rs:19:24
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::decorator::{Beverage, DarkRost, Espresso, HouseBlend, Mocha, Soy, Whip};
[INFO] [stdout]    |                        ^^^^^^^^  ^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^  ^^^^^  ^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ChicagoPizzaStore`, `NYPizzaStore`, `PizzaStore`, `Pizza`
[INFO] [stdout]   --> src/lib.rs:20:29
[INFO] [stdout]    |
[INFO] [stdout] 20 | use crate::factory_method::{ChicagoPizzaStore, NYPizzaStore, Pizza, PizzaStore};
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CurrentConditionsDisplay`, `Subject`, `WeatherDate`
[INFO] [stdout]   --> src/lib.rs:21:23
[INFO] [stdout]    |
[INFO] [stdout] 21 | use crate::observer::{CurrentConditionsDisplay, Subject, WeatherDate};
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `C`, `ChocolateBoiler`
[INFO] [stdout]   --> src/lib.rs:22:24
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::singleton::{ChocolateBoiler, C};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^  ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duck`, `FlyBehavior`, `FlyRocketPowered`, `MallardDuck`, `ModelDuck`
[INFO] [stdout]   --> src/lib.rs:23:23
[INFO] [stdout]    |
[INFO] [stdout] 23 | use crate::strategy::{Duck, FlyBehavior, FlyRocketPowered, MallardDuck, ModelDuck};
[INFO] [stdout]    |                       ^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec<Rc<RefCell<T>>>` in the current scope
[INFO] [stdout]   --> src/observer.rs:57:24
[INFO] [stdout]    |
[INFO] [stdout] 57 |         self.observers.remove_item(&o)
[INFO] [stdout]    |                        ^^^^^^^^^^^ method not found in `Vec<Rc<RefCell<T>>>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 22 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0599`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `head_first_design_patterns`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "fcce5916aa938cb97a91c5810e1bbb512d714575405a96b0e5c39a0cbdc41ecc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fcce5916aa938cb97a91c5810e1bbb512d714575405a96b0e5c39a0cbdc41ecc", kill_on_drop: false }`
[INFO] [stdout] fcce5916aa938cb97a91c5810e1bbb512d714575405a96b0e5c39a0cbdc41ecc
